//
//  main.cpp
//  all_test04
//
//  Created by Jarosław Wojtasik on 18.06.2013.
//  Copyright (c) 2013 Jarosław Wojtasik. All rights reserved.
//

#include <allegro5/allegro.h>
#include <memory>
#include "Graphics.h"
#include "Controller.h"
#include "Rotator.h"

int main(int argc, char **argv)
{
    Graphics::getGraphics().initialize();
    // ==========================

   std::shared_ptr<Controller> control( new Controller() );
   std::shared_ptr<Rotator> rotator( new Rotator() );

   control->setRotator( rotator );

   control->start();

    // ==========================

    Graphics::getGraphics().step( 2 );

    Graphics::getGraphics().finalize();
    
    return 0;
}
		
